package com.hex.ds.hdtp.core.inf.script.analyze.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hex.ds.hdtp.core.inf.script.analyze.po.ScriptAnalyzeTaskPo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Package com.hex.ds.hdtp.core.inf.script.analyze.mapper
 * @ClassName IScriptAnalyzeTaskMapper
 * @Description 脚本分析任务-数据接口
 * @Author gj.xu
 * @Date 2023/12/8 16:32
 * @Version v2.0
 **/
@Repository
public interface IScriptAnalyzeTaskMapper extends BaseMapper<ScriptAnalyzeTaskPo> {

    IPage<ScriptAnalyzeTaskPo> queryListByPage(IPage<ScriptAnalyzeTaskPo> page, @Param("po") ScriptAnalyzeTaskPo scriptAnalyzeTaskPo);

    void modifyTotal(String pkId, Integer total);

    void modifySuccessCount(String pkId);

    void modifyFailCount(String pkId);

    void modifyStatus(String pkId, String nowTs);

    Integer modifyStartTs(String pkId, String status, String startTs);
}
